package day2004;

import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;

public class khd2 {
    public static void main(String[] args) throws IOException {
        Socket a = new Socket("192.168.2.2",8000);
        OutputStream out = a.getOutputStream();
        PrintWriter pw = new PrintWriter (out);
        pw.println("500000FF03FF000018001004010000D*0001000050");
        pw.flush();

        InputStream c = a.getInputStream();
//        InputStreamReader d =new  InputStreamReader(c);
//        BufferedReader e = new BufferedReader(d);
//        String f = e.readLine();
        for(int i=0;i<80;i++){
            System.out.println((char)c.read());
        }
    }
}
